package com.example.springlearn.bean;

public class QuestionInfo {
    private Integer qid;
    private String title;
    private String qInfo;
    private String caseIn;
    private String caseOut;
    private Integer testNum;
    private String in1;
    private String out1;
    private String in2;
    private String out2;
    private String in3;
    private String out3;

    public QuestionInfo() {
    }

    public QuestionInfo(String title, String qInfo, String caseOut) {
        this.title = title;
        this.qInfo = qInfo;
        this.caseOut = caseOut;
        this.testNum = 0;
        this.out1 = caseOut;
    }

    public QuestionInfo(String title, String qInfo, String caseIn, String caseOut, Integer testNum, String in1, String out1, String in2, String out2, String in3, String out3) {
        this.title = title;
        this.qInfo = qInfo;
        this.caseIn = caseIn;
        this.caseOut = caseOut;
        this.testNum = testNum;
        this.in1 = in1;
        this.out1 = out1;
        this.in2 = in2;
        this.out2 = out2;
        this.in3 = in3;
        this.out3 = out3;
    }

    public QuestionInfo(Integer qid, String title, String qInfo, String caseIn, String caseOut, Integer testNum, String in1, String out1, String in2, String out2, String in3, String out3) {
        this.qid = qid;
        this.title = title;
        this.qInfo = qInfo;
        this.caseIn = caseIn;
        this.caseOut = caseOut;
        this.testNum = testNum;
        this.in1 = in1;
        this.out1 = out1;
        this.in2 = in2;
        this.out2 = out2;
        this.in3 = in3;
        this.out3 = out3;
    }

    public Integer getQid() {
        return qid;
    }

    public void setQid(Integer qid) {
        this.qid = qid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getQInfo() {
        return qInfo;
    }

    public void setQInfo(String qInfo) {
        this.qInfo = qInfo;
    }

    public String getCaseIn() {
        return caseIn;
    }

    public void setCaseIn(String caseIn) {
        this.caseIn = caseIn;
    }

    public String getCaseOut() {
        return caseOut;
    }

    public void setCaseOut(String caseOut) {
        this.caseOut = caseOut;
    }

    public Integer getTestNum() {
        return testNum;
    }

    public void setTestNum(Integer testNum) {
        this.testNum = testNum;
    }

    public String getIn1() {
        return in1;
    }

    public void setIn1(String in1) {
        this.in1 = in1;
    }

    public String getOut1() {
        return out1;
    }

    public void setOut1(String out1) {
        this.out1 = out1;
    }

    public String getIn2() {
        return in2;
    }

    public void setIn2(String in2) {
        this.in2 = in2;
    }

    public String getOut2() {
        return out2;
    }

    public void setOut2(String out2) {
        this.out2 = out2;
    }

    public String getIn3() {
        return in3;
    }

    public void setIn3(String in3) {
        this.in3 = in3;
    }

    public String getOut3() {
        return out3;
    }

    public void setOut3(String out3) {
        this.out3 = out3;
    }

    @Override
    public String toString() {
        return "QuestionInfo{" +
                "qid=" + qid +
                ", title='" + title + '\'' +
                ", qInfo='" + qInfo + '\'' +
                ", caseIn='" + caseIn + '\'' +
                ", caseOut='" + caseOut + '\'' +
                ", testNum=" + testNum +
                ", in1='" + in1 + '\'' +
                ", out1='" + out1 + '\'' +
                ", in2='" + in2 + '\'' +
                ", out2='" + out2 + '\'' +
                ", in3='" + in3 + '\'' +
                ", out3='" + out3 + '\'' +
                '}';
    }
}
